home *** CD-ROM | disk | FTP | other *** search
- /* This is a test of the ARexx port in AGMSPlaySound. It starts up
- AGMSPlaySound, waits a while (for it to finish starting up) then
- lets it play for 5 seconds, then stops it. */
-
- SAY "AREXX Script is running AGMSPlaySound."
- ADDRESS COMMAND "run AGMSPlaySound files Samples:Beatle#?"
-
- SAY "AREXX Script is waiting for the AGMSPlaySound AREXX port to appear."
- SAY SHOW("Ports")
- DO WHILE ~ SHOW("Ports","AGMSPlaySound")
- SAY "AREXX Script is still waiting for AGMSPlaySound to appear..."
- SAY SHOW("Ports")
- ADDRESS COMMAND "Wait 1 sec"
- END
- SAY "AREXX Script has found the AGMSPlaySound port."
- SAY SHOW("Ports")
-
- SAY "AREXX Script realises that Playing is going on. Waiting for 5 seconds."
-
- ADDRESS COMMAND "Wait 5 sec"
-
- SAY "AREXX Script is stopping the Playing."
- ADDRESS "AGMSPlaySound" "StopPlaying"
-
- SAY "AREXX Script has finished. Playing should stop soon."
-